package com.lu.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lu.model.article.dto.ArticleIndexDto;
import com.lu.model.article.pojo.ApArticle;
import com.lu.model.common.dtos.ResponseResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ApArticleIndexMapper extends BaseMapper<ApArticle> {

    /**
     * 查询首页新闻列表
     * @param dto
     * @param loadtype
     * @return
     */
    List<ApArticle> selectIndexArticle(@Param("dto") ArticleIndexDto dto, @Param("type") Short loadtype);

}
